<!--订单详情-->
<div class="dialog_content">
<form id="info_form" action="{:U('order/index')}" method="post">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
    <tr>
        <th width="80">订单号 :</th>
        <td><input type="text" name="name" id="name" class="input-text" size="40" value="{$info.name}"></td>
    </tr>
    <tr>
        <th>{:L('ad_url')} :</th>
        <td><input type="text" name="url" class="input-text" size="40" value="{$info.url}"></td>
    </tr>
    <tr>
        <th>{:L('adboard')} :</th>
        <td class="blue">
            {$board_info.name} ({$board_info.width}*{$board_info.height})
        </td>
    </tr>
    <tr>
        <th>{:L('ad_type')} :</th>
        <td>
            <select name="type" id="type">
            <volist name="ad_type_arr" id="val" >
                <option value="{$key}" <if condition="$info['type'] eq $key">selected="selected"</if>>{$val}</option>
            </volist>
            </select>
        </td>
    </tr>

    <tr id="ad_image" class="bill_media">
        <td colspan="2">
            <table>
                <tr>
                    <th width="70">{:L('ad_image')} :</th>
                    <td><input type="text" name="img" id="J_img" class="input-text fl mr10" size="30" value="{$info.img}">
                        <div id="J_upload_img" class="upload_btn"><span>{:L('upload')}</span></div>
                        <if condition="$info['type'] eq 'image'"><notempty name="info['img']"><span class="attachment_icon J_attachment_icon" file-type="image" file-rel="./Uploads/advert/{$info.img}"><img src="__IMG__/filetype/image_s.gif" /></span></notempty></if>
                    </td>
                </tr>
                <tr>
                    <th>背景色 :</th>
                    <td><input type="text" name="info[bgcolor]" class="input-text" size="20" value="{$data.bgcolor}"/></td>
                </tr>
            </table>
        </td>

    </tr>

    <tr id="ad_code" class="bill_media" style="display:none;">
        <th>{:L('ad_code')} :</th>
        <td><textarea rows="3" cols="50" name="code" id="code">{$info.content}</textarea></td>
    </tr>
    <tr id="ad_flash" class="bill_media" style="display:none;">
        <th>{:L('ad_flash')} :</th>
        <td>
            <input type="text" name="flash" id="J_flash" class="input-text fl mr10" size="30" value="{$info.content}">
            <div id="J_upload_flash" class="upload_btn"><span>{:L('upload')}</span></div>
        </td>
    </tr>
    <tr id="ad_text" class="bill_media" style="display:none;">
        <th>{:L('ad_text')} :</th>
        <td><textarea rows="3" cols="50" name="text" id="text">{$info.content}</textarea></td>
    </tr>
    <tr>
      <th>{:L('ad_desc')} :</th>
      <td><input type="text" name="desc" class="input-text fl mr10" size="30" value="{$info.desc}"></td>
    </tr>
    <tr>
        <th>{:L('enabled')} :</th>
        <td>
            <label><input type="radio" <if condition="$info['status'] eq '1'">checked="checked"</if> value="1" name="status"> {:L('yes')}</label>&nbsp;&nbsp;
            <label><input type="radio" <if condition="$info['status'] eq '0'">checked="checked"</if> value="0" name="status"> {:L('no')}</label>
        </td>
    </tr>
</table>
<input type="hidden" name="id" id="id" value="{$info.id}" />
</form>
</div>
<script type="text/javascript">
$(function(){
    $('#info_form').ajaxForm({success:complate,dataType:'json'});
    function complate(result){
        if(result.status == 1){
            $.dialog.get(result.dialog).close();
            $.pinphp.tip({content:result.msg});
            window.location.reload();
        } else {
			$.pinphp.tip({content:result.msg, icon:'alert'});
        }
    }
})
</script>